﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="PPAP.Web.Todolist.test" %>

<%@ Register Assembly="Brettle.Web.NeatUpload" Namespace="Brettle.Web.NeatUpload"
    TagPrefix="Upload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function ToggleVisibility(id, type) {
            el = document.getElementById(id);
            if (el.style) {
                if (type == 'on') {

                    el.style.display = 'block';
                }
                else {

                    el.style.display = 'none';
                }
            }
            else {
                if (type == 'on') {

                    el.display = 'block';
                }
                else {

                    el.display = 'none';
                }
            }
        } 
</script> 
</head>
<body> 
<form id="form1" runat="server"> 
<div> 

<upload:InputFile id="AttachFile" runat="server"></upload:InputFile> 
<asp:Button ID="Upload" runat="server" Text="Upload" OnClientClick="ToggleVisibility('ProgressBar','on')" OnClick="Upload_Click"/> 
<div id="ProgressBar" style="display:none;"> 
<upload:progressbar id="pbProgressBar" runat="server" Inline="true" Width="500px" Height="100"> </upload:progressbar> 
</div> 
</div> 
</form> 
</body> 
</html>
